package com.flyduck.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @program: flyduck-platform
 * @description: 路由VO
 * @author: flyduck
 * @create: 2021-03-17 21:18
 **/
@Data
@ApiModel(value = "路由")
public class RouteVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单ID")
    private String id;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "父菜单ID")
    private String parentId;

    @ApiModelProperty(value = "显示顺序")
    private String sort;

    @ApiModelProperty(value = "游览器路径")
    private String path;

    @ApiModelProperty(value = "vue文件路径")
    private String component;

    @ApiModelProperty(value = "菜单类型（1目录 2菜单 3按钮）")
    private String menuType;

    @ApiModelProperty(value = "可以访问的路径")
    private String url;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "启用状态（1启用 2禁用）")
    private String status;

    @ApiModelProperty(value = "子菜单")
    private List<RouteVO> children = new ArrayList<>();

}
